package com.factory.iamp.service;

import com.factory.iamp.pojo.Group;
import com.factory.iamp.pojo.UserList;
import com.factory.iamp.utils.helper.PageHelper;

import java.util.List;

public interface GroupService {
    int Count();

    int groupMemberCount(int gid);

    int findByNameCount(String name);

    List<Group> findByNameListPaged(PageHelper data, String name);

    List<Group> ListPaged(PageHelper data);

    List<Group> findByUid(String uid);

    List<UserList> groupMemberListPaged(PageHelper data, int gid);

    void joinGroup(String uid, int gid);

    void deleteGroup(int gid);

    void makeGroup(String name, List<String> member);

    void alterGroup(int gid, List<String> member);
}
